import request from '@/utils/request'

export function getUserVoPage(params) {
    return request({
        url: `/api/v1/core/user/page`,
        method: 'post',
        data: params
    })
}

export function createUser(params) {
    return request({
        url: `/api/v1/core/user/create`,
        method: 'post',
        data: params
    })
}

export function updateUser(params) {
    return request({
        url: `/api/v1/core/user/update`,
        method: 'post',
        data: params
    })
}

export function deleteUser(params) {
    return request({
        url: `/api/v1/core/user/login/info/delete`,
        method: 'post',
        data: params
    })
}

export function resetUserPwd(params) {
    return request({
        url: `/api/v1/core/user/login/info/reset/pwd`,
        method: 'post',
        data: params
    })
}

export function getPublicKey() {
    return request({
        url: `api/v1/core/user/login/info/publicKey`,
        method: 'get'
    })
}

export function saveLoginCheckCode(params) {
    return request({
        url: `/api/v1/core/user/login/info/check/code`,
        method: 'post',
        data: params
    })
}

export function login(params) {
    return request({
        url: `/api/v1/core/user/login/info/login`,
        method: 'post',
        data: params
    })
}

export function changePwd(params) {
    return request({
        url: `/api/v1/core/user/login/info/change/pwd`,
        method: 'post',
        data: params
    })
}




